<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>时间轴</title>
	<script src="../../js/echarts.js"></script>
</head>
<body>
<div id="box" style="width:100%;height:800px"></div>
<script>
var myChart=echarts.init(document.getElementById('box'));

option = {
    title: {
        text: '个人报销总览'
    },
    tooltip : {
        trigger: 'axis',
        axisPointer: {
            type: 'cross',
            label: {
                backgroundColor: '#6a7985'
            }
        }
    },
    legend: {
        data:['物业管理','公务交通','其它管理']
    },
    toolbox: {
        feature: {
            saveAsImage: {}
        }
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis : [
        {
            type : 'category',
            boundaryGap : false,
            data : ['2017-12','2017-11','2017-10','2017-9','2017-8','2017-7','2017-6']
        }
    ],
    yAxis : [
        {
            type : 'value'
        }
    ],
    series : [
        {
            name:'物业管理',
            type:'line',
            stack: '总量',
            areaStyle: {normal: {}},
            data:[120, 132, 101, 0, 90, 230, 210]
        },
        {
            name:'公务交通',
            type:'line',
            stack: '总量',
            areaStyle: {normal: {}},
            data:[220, 182, 191, 234, 290, 330, 310]
        },
        {
            name:'其它管理',
            type:'line',
            stack: '总量',
            areaStyle: {normal: {}},
            data:[150, 232, 0, 154, 190, 330, 410]
        },
       
      
    ]
};
myChart.setOption(option);


</script>
	
</body>
</html>